/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.ac.cput.Toto.inheritance_principle.inheritence_model;

/**
 *
 * @author Jeffrey
 */
public class Student extends Person{

    private long stud_no;

    public Student() {
    }

    public Student(String name, char gender, long stud_no) {
        super(name, gender);
        this.stud_no = stud_no;
    }

    public long getStud_no() {
        return stud_no;
    }

    public void setStud_no(long stud_no) {
        this.stud_no = stud_no;
    }

    public String print()
    {
        return "Name: "+name+"  genger: "+gender+" Stud No: "+stud_no;
    }



}
